import Vue from "vue";
import VueRouter from "vue-router";
import Home from "@/views/Home.vue";

Vue.use(VueRouter);

const routes = [
  { path: "/", redirect: "/home" },
  {
    path: "/home",
    name: "Home",
    component: Home,
  },
  {
    path: "/cart",
    name: "Cart",
    component: () => import("@/views/Cart.vue"),
  },
  {
    path: "/ceo",
    name: "Ceo",
    component: () => import("@/views/Ceo.vue"),
  },
  {
    path: "/kind",
    name: "Kind",
    component: () => import("@/views/Kind.vue"),
  },
  {
    path: "/me",
    name: "Me",
    component: () => import("@/views/Me.vue"),
  },
  {
    path: "/item/:id/:price",
    name: "Item",
    component: () => import("@/views/Item.vue"),
  },
];

const router = new VueRouter({
  routes,
});

export default router;
